//
//  AVCAEAGLLayer.m
//  OpenGLES-Test
//
//  Created by huge on 2021/6/16.
//  Copyright © 2021 huge. All rights reserved.
//

#import "AVCAEAGLLayer.h"

@implementation AVCAEAGLLayer

-(id)init{
    self = [super init];
    if (self) {
        [self initLayer];
    }
    
    return self;
}

-(void)initLayer{
    self.opaque =YES;
    self.drawableProperties =[NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithBool:YES],kEAGLDrawablePropertyRetainedBacking, kEAGLColorFormatRGBA8,kEAGLDrawablePropertyColorFormat,nil];
    
}

-(id)initWithFrame:(CGRect)frame{

    self = [super init];
    if (self) {
        self.frame = frame;
        [self initLayer];
    }
    
    return self;
}

@end
